package com.aaa.controller.sas;

import com.aaa.entity.LayData;
import com.aaa.entity.sas.TSasRecordDetails;
import com.aaa.service.sas.TSasRecordDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (TSasRecordDetails)表控制层
 *
 * @author makejava
 * @since 2022-10-29 09:53:22
 */
@RestController
@RequestMapping("tSasRecordDetails")
public class TSasRecordDetailsController {
    /**
     * 服务对象
     */
    @Autowired
    private TSasRecordDetailsService tSasRecordDetailsService;

    /*
        添加做题记录详情
     */
    @PostMapping("addRecordDetails")
    public LayData addRecordDetails(@RequestBody List<TSasRecordDetails> tSasRecordDetails){
        Boolean i = tSasRecordDetailsService.addRecordDetails(tSasRecordDetails);
        return new LayData(i);
    }

}
